package com.example.administrator.xtu_community.bean;

import org.litepal.crud.DataSupport;

import java.io.Serializable;
import java.sql.Timestamp;

public class News extends DataSupport implements Serializable {
    private String title;
    private String content;
    private Timestamp time;
    private User user;

    public News(String title, String content, Timestamp time) {
        this.title = title;
        this.content = content;
        this.time = time;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Timestamp getTime() {
        return time;
    }

    public void setTime(Timestamp time) {
        this.time = time;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
}
